<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php 
	//chuỗi truy vấn user theo ID
	$tv="select * from user where user_name='$_GET[id]'";
	//thực hiện truy vấn vào database
	$tv_1=mysql_query($tv);
	$tv_2=mysql_fetch_array($tv_1);
?>
<table width="990px" id="er" style="margin-top:6px" border="1">
	//giao diện sửa thông tin thành viên
	<tr>
		<td align="right">
			<span class="span__16">Sửa Thông Tin Thành Viên</span>
			<a href="?home" class="nut_dong" style="color:red">
				Đóng
			</a>
		</td>
	</tr>
	<tr>
		//giao diện chi tiết thông tin người dùng
		<td>
			<form action="" method="post" enctype="multipart/form-data">
				<table width="976px" border="0" id="er_2" style="margin:6px" >
					<tr>
						<td width="150px">
							<b>Tên: </b>
						</td>
						<td>
                        	<input type="hidden" name="ten" value="<?php echo $tv_2['user_name'];?>">
							<input disabled="true" value="<?php echo $tv_2['user_name'];?>">
						</td>
					</tr>
                    <tr>
						<td width="150px">
							<b>Mật Khẩu:</b>
						</td>
                        <td>
                        	<input type="password" name="pass" />
                         </td> 
					</tr>
					 <tr>
						<td width="150px">
							<b>Quyền quản trị:</b>
						</td>
                        <td>
                        	<input type="text" name="admin" value="<?php echo $tv_2['admin'];?>"/>
                         </td> 
					</tr>
                    <tr>
						<td width="150px">
							<b>Liên lạc:</b>
						</td>
                        <td>
                        	<input type="text" name="email" value="<?php echo $tv_2['email'];?>"/>
                         </td> 
                          <tr>
						<td width="150px">
							<b>Họ tên:</b>
						</td>
                        <td>
                        	<input type="text" name="hoten" value="<?php echo $tv_2['ho_ten'];?>" />
                         </td> 
					</tr>
					 <tr>
						<td width="150px">
							<b>Phái:</b>
						</td>
                        <td>
                        	<input type="text" name="phai" value="<?php echo $tv_2['phai'];?>"/>
                         </td> 
					</tr>
					 <tr>
						<td width="150px">
							<b>Sinh nhật:</b>
						</td>
                        <td>
                        	<input type="text" name="sinhnhat" value="<?php echo $tv_2['sinh_nhat'];?>"/>
                         </td> 
					</tr>
					 <tr>
						<td width="150px">
							<b>Điện thoại:</b>
						</td>
                        <td>
                        	<input type="text" name="dienthoai" value="<?php echo $tv_2['dien_thoai'];?>" />
                         </td> 
					</tr>
					 <tr>
						<td width="150px">
							<b>Địa chỉ:</b>
						</td>
                        <td>
                        	<input type="text" name="diachi" value="<?php echo $tv_2['dia_chi'];?>" />
                         </td> 
					</tr>
					 <tr>
						<td width="150px">
							<b>CMND:</b>
						</td>
                        <td>
                        	<input type="text" name="cmnd" value="<?php echo $tv_2['cmnd'];?>"/>
                         </td> 
					</tr>
						<td>
                       		 <input type="hidden" name="idtv" value="<?php echo $tv_2['idlg'];?>">
							<input type="hidden" name="sua_tv" value="sua_tv">
							<!--<input type="submit" value="Chấp nhận">-->
							<input type="image" src="hinhanh/sua.gif" style="border:0px solid red">
			
						</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
</table>
<script>
	table_css_1("er");
	table_css("er_2");
</script>